package com.liangzhong.modules.rankinglist.command
{
	import com.liangzhong.proxy.rankinglist.RankinglistProxy;
	import com.liangzhong.proxyconstant.rankinglist.RankinglistConstant;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class RankinglistCommand extends SimpleCommand
	{
		public function RankinglistCommand()
		{
			super();
		}
		override public function execute(notification:INotification):void
		{
			var proxy:RankinglistProxy;
			switch(notification.getName())
			{
				case RankinglistConstant.RANKINGBYTYPE:
					proxy = facade.retrieveProxy(RankinglistProxy.PROXYNAME) as RankinglistProxy;
					proxy.requestRankDate(notification.getBody());
					break;
			}
		}
	}
}